Skip to content

Remove dead code from LocalExecutionPlanner.visitTableScan#29050

Merged
findepi merged 2 commits intotrinodb:masterfrom
findepi:findepi/remove-dead-code-from-localexecutionplanner-visittablescan-4575eb
Apr 10, 2026
Merged

Remove dead code from LocalExecutionPlanner.visitTableScan#29050
findepi merged 2 commits intotrinodb:masterfrom
findepi:findepi/remove-dead-code-from-localexecutionplanner-visittablescan-4575eb

Conversation

@findepi
Copy link
Copy Markdown
Member

@findepi findepi commented Apr 9, 2026

Before the changes, the visitTableScan helper takes filterExpression which is effectively always TRUE. Additionally, the call from visitFilter is generally unreachable. There should be no FilterNode with trivial static condition and no dynamic filters. The commit removes the unreachable call and inlines now redundant helper.

Before the changes, the `visitTableScan` helper takes `filterExpression` which is
effectively always TRUE. Additionally, the call from `visitFilter` is
generally unreachable. There should be no FilterNode with trivial static
condition and no dynamic filters. The commit removes the unreachable
call and inlines now redundant helper.
@findepi findepi added the no-release-notes This pull request does not require release notes entry label Apr 9, 2026
@cla-bot cla-bot bot added the cla-signed label Apr 9, 2026
Comment thread core/trino-main/src/main/java/io/trino/sql/planner/LocalExecutionPlanner.java Outdated
@github-actions github-actions bot added the hive Hive connector label Apr 9, 2026
@findepi findepi force-pushed the findepi/remove-dead-code-from-localexecutionplanner-visittablescan-4575eb branch from c451c41 to c6a7276 Compare April 9, 2026 19:24
Remove the `DynamicFilter` parameter from `TableScanOperator`, as it is
effectively always set to "no dynamic filter".
@findepi findepi force-pushed the findepi/remove-dead-code-from-localexecutionplanner-visittablescan-4575eb branch from c6a7276 to 013fbf2 Compare April 9, 2026 19:25
@findepi findepi merged commit 1337f58 into trinodb:master Apr 10, 2026
191 of 194 checks passed
@findepi findepi deleted the findepi/remove-dead-code-from-localexecutionplanner-visittablescan-4575eb branch April 10, 2026 12:29
@github-actions github-actions bot added this to the 481 milestone Apr 10, 2026
@ebyhr ebyhr mentioned this pull request Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed hive Hive connector no-release-notes This pull request does not require release notes entry

Development

Successfully merging this pull request may close these issues.

3 participants